package com.vnl.system.aaa.util;

import org.vnl.platform.dk.util.PDKRuntimeException;


public class AARuntimeException extends PDKRuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4048501166914514405L;
    public static final String AA_SYSTEM_ID = "AA";
    public static final String DEFAULT_BUNDLE_NAME = "resource.com.von.system.aaa.AA";

    public AARuntimeException(AAErrCode code) {
        super(AA_SYSTEM_ID, code.toString(), code.getSeverityString(), null, null);
    }

    public AARuntimeException(AAErrCode code, Throwable cause) {
        super(AA_SYSTEM_ID, code.toString(), code.getSeverityString(), null, cause);
    }
    
    public AARuntimeException(AAErrCode code, Object[] parameters) {
        super(AA_SYSTEM_ID, code.toString(), code.getSeverityString(), parameters, null);
    }
    
    public AARuntimeException(AAErrCode code, Object[] parameters, Throwable cause) {
        super(AA_SYSTEM_ID, code.toString(), code.getSeverityString(), parameters, cause);
    }
    
	@Override
	protected String getDefaultBundleName() {
		return DEFAULT_BUNDLE_NAME;
	}

}
